const common: any = {};
common.install = function(_Vue: any, options = {}) {
  _Vue.prototype.asyncDel = async function(message: string) {
    return await this.$confirm(message || "确认删除该数据吗?", "提示", {
      confirmButtonText: "确定",
      cancelButtonText: "取消",
      type: "warning"
    })
      .then(() => true)
      .catch(() => false);
  };
};
export default common;
